Always pass `-C metadata` to the compiler
authorAlex Crichton <alex@alexcrichton.com>
Tue, 2 Aug 2016 06:22:29 +0000 (23:22 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 2 Aug 2016 06:22:29 +0000 (23:22 -0700)
commit083ff01eef83770d7e62d0dac61ab94522c77e42
tree5743e6292943d7dd570d5b4cfff10c11f218d9ee
parent34175981635cb6c827bc59a6ccf980e83fef57fb
Always pass `-C metadata` to the compiler

If it's not otherwise available we just key it off the pkgid which should be
unique enough across compilations. This should help incremental compilation
efforts be "more incremental" across projects.

Closes #2943
src/cargo/ops/cargo_rustc/mod.rs
tests/build-lib.rs
tests/build-script.rs
tests/build.rs
tests/cargo_alias_config.rs
tests/cross-compile.rs
tests/profiles.rs
tests/run.rs
tests/rustc.rs